package com.czr.dao.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotEmpty;
import java.io.Serializable;

/**
 * <p>
 * 关于我们
 * </p>
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("czr_about")
@ApiModel(value="czr_about对象", description="关于我们")
public class CzrAbout extends Model<CzrAbout> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键(不用传)")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "评论")
    @NotEmpty(message = "评论不能为空！")
    @TableField("content")
    private String content;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
